<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean"
	prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html"
	prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic"
	prefix="logic"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>JSP for campContRsltForm form</title>
		<LINK href="css/default.css" rel=stylesheet>
		<style type="text/css">
#id1 {
	width: 100%;
	height: 100%;
	background-color: #000;
	FILTER: alpha(opacity =                       50);
	position: absolute;
	top: 0;
	left: 0;
	moz-opacity: 0.8;
	opacity: .80;
	z-index: 49;
	display: none;
}

#id2 {
	top: 10px;
	position: absolute;
	z-index: 50;
	display: none;
	border: 3px solid #E5E5E5;
	left: 100px;
	background-color: white;
}
</style>


		<script language="javascript" type="text/javascript">
		function show(){
		id1.style.height=document.body.scrollHeight+"px";
		id1.style.width=document.body.scrollWidth+"px";
		id1.style.display='block';
		id2.style.display='block';
		}
		function hide(){
		id1.style.display='none';
		id2.style.display='none';
		}
		function opchange(o){
		document.campContRsltLvlForm.method.value=o;
		document.campContRsltLvlForm.submit();

		}
</script>
		<script src="../js/dragelement.js"></script>

	</head>

	<body>
		<logic:present name="CampContRsltLvlList">
			
			<table width="880" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
						<td width="3" height="31">
							<img height="31" src="./images/table_01.gif" width="3" />
						</td>
						<td background="./images/table_02.gif" height="31">
							<table cellspacing="0" cellpadding="0" width="146" align="left"
								border="0">
								<tbody>
									<tr>
										<td width="51" background="./images/title_1_bg.gif">
											<img height="31" src="./images/title_1.gif" width="51" />
										</td>
										<td width="95" background="./images/title_1_bg.gif">
											<span class="color_b_666">接触结果管理</span>
										</td>
									</tr>
								</tbody>
							</table>
						</td>
						<td width="3">
							<img height="31" src="./images/table_03.gif" width="3" />
						</td>
					</tr>
					<tr>
						<td width="3" background="./images/table_04.gif" width="3"
							align="right">
							<img height="100%" src="./images/table_04.gif" width="3" />
						</td>
						<td>
							<table width="770" border="0" align="center" cellpadding="5"
								cellspacing="1" bgcolor="#FF9900">
								<tr>
									<th>
										<bean:message key="campContRsltLvl.jsp.codeId" />
									</th>
									<th>
										<bean:message key="campContRsltLvl.jsp.codeName" />
									</th>
									<th>
										<bean:message key="campContRsltLvl.jsp.parCodeName" />
									</th>
									<th>
										<bean:message key="common.jsp.operation" />
										<a href="campContRsltLvl.do?method=list"> <u> <bean:message
													key="common.jsp.addlink" /> </u> </a>
									</th>
								</tr>

								<logic:iterate name="CampContRsltLvlList" id="i"
									offset="startRowNo" length="pageSize">
									<tr>
										<td>
											<bean:write name="i" property="codeId" />
										</td>
										<td class="alt">
											<bean:write name="i" property="codeName" />
										</td>
										<td>
											<bean:write name="i" property="parCodeName" />
										</td>
										<td class="alt">
											<html:link
												href="campContRsltLvl.do?method=list&codeId=${i.codeId}">
												<u><bean:message key="common.jsp.viewlink" /> </u>
											</html:link>
										</td>
									</tr>
								</logic:iterate>
								<tr>
										<td colspan="4">
											<div align="center" style="font-size: 12">
												<a href="campContRsltLvl.do?method=list&paging=first">首页</a>
												<a href="campContRsltLvl.do?method=list&paging=previous">上一页</a>
												<a href="campContRsltLvl.do?method=list&paging=next">下一页</a>
												<a href="campContRsltLvl.do?method=list&paging=last">尾页</a>
												&nbsp;&nbsp;&nbsp;&nbsp;
												<logic:present name="currPage" scope="request">
				第<bean:write name="currPage" />/<bean:write name="maxPage" />页
				</logic:present>
											</div>
										</td>
									</tr>
							</table>
						</td>
						<td background="./images/table_05.gif" width="3" align="left">
							<img height="100%" src="./images/table_05.gif" width="3">
						</td>
					</tr>
					<tr>
						<td height=3 valign="top">
							<img height="12px" src="./images/table_06.gif" width="3px">
						</td>
						<td height=3 valign="top">
							<img height="3px" src="./images/table_07.gif" width="100%">
						</td>
						<td height=3 valign="top">
							<img height="12px" src="./images/table_08.gif" width="3px">
						</td>
					</tr>
				</tbody>
			</table>
		</logic:present>
		<logic:present name="syscode" scope="request">
			
				<html:form action="/campContRsltLvl">
					<table width="400" border="0" align="center" cellpadding="5" cellspacing="1"
						bgcolor="#FF9900">
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.codeId" />
							</td>
							<td>
								<html:text property="campcontrsltlvl.codeId"
									value="${syscode.codeId}" />
							</td>
						</tr>
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.codeName" />
							</td>
							<td>
								<html:text property="campcontrsltlvl.codeName"
									value="${syscode.codeName}" />
							</td>
						</tr>
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.parCodeName" />
							</td>
							<td>
								<html:select property="campcontrsltlvl.parCodeId">
									<logic:iterate name="CampContRsltLvlList" id="j">
										<logic:equal name="syscode" property="parCodeId"
											value="${j.codeId}">
											<html:option value="${j.codeId}">
												<bean:write name="j" property="codeName" />
											</html:option>
										</logic:equal>
									</logic:iterate>
									<html:option value="-1">
										<bean:message key="common.jsp.null" />
									</html:option>
									<logic:iterate name="CampContRsltLvlList" id="j">
										<logic:notEqual name="syscode" property="parCodeId"
											value="${j.codeId}">
											<html:option value="${j.codeId}">
												<bean:write name="j" property="codeName" />
											</html:option>
										</logic:notEqual>
									</logic:iterate>
								</html:select>
							</td>
						</tr>
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.creatorName" />
							</td>
							<td>
								<html:text property="campcontrsltlvl.creatorName"
									readonly="true" value="${syscode.creatorName}" />
							</td>
						</tr>
						<tr>
							<td colspan="2" align="center" valign="middle">
								<img src='images/button_modify.gif' width="63" height="21" onclick="opchange('save')" />
								&nbsp;&nbsp;
								<img src='images/button_delete.gif' width="63" height="21" onclick="opchange('delete')" />
								&nbsp;&nbsp;
								<img src='images/button_exit.gif' width="63" height="21" onclick="opchange('list')" />
							</td>
						</tr>
					</table>
					<html:hidden property="method" value="save" />
				</html:form>
			
			<script language="javascript" type="text/javascript"> </script>
		</logic:present>
		<logic:notPresent name="syscode" scope="request">
			
				<html:form action="/campContRsltLvl">
					<table width="400" border="0" align="center" cellpadding="5" cellspacing="1"
						bgcolor="#FF9900">
						<tr>
							<td colspan="2" align="center">
								<bean:message key="campContRsltLvl.jsp.addnew" />
							</td>

						</tr>
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.codeId" />
							</td>
							<td>
								<html:text property="campcontrsltlvl.codeId" value="" />
							</td>
						</tr>
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.codeName" />
							</td>
							<td>
								<html:text property="campcontrsltlvl.codeName" value="" />
							</td>
						</tr>
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.parCodeName" />
							</td>
							<td>
								<html:select property="campcontrsltlvl.parCodeId">
									<html:option value="-1">
										<bean:message key="common.jsp.null" />
									</html:option>
									<logic:iterate name="CampContRsltLvlList" id="j">
										<html:option value="${j.codeId}">
											<bean:write name="j" property="codeName" />
										</html:option>
									</logic:iterate>
								</html:select>
							</td>
						</tr>
						<tr>
							<td>
								<bean:message key="campContRsltLvl.jsp.creatorName" />
							</td>
							<td>
								<html:text readonly="true"
									property="campcontrsltlvl.creatorName" value="${User_Name}" />
							</td>
						</tr>
						<tr>
							<td align="center" valign="middle" colspan="2">
								<img src='images/button_addnew.gif' width="63" height="21" onclick="opchange('save')" />
								&nbsp;&nbsp;
								<img src='images/button_cancel.gif' width="63" height="21" onclick="" />
							</td>
						</tr>
					</table>
					<html:hidden property="method" value="save" />
				</html:form>
			
			<script type="text/javascript"></script>
		</logic:notPresent>
	</body>
</html>

